﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using Model;
using BLL;
public partial class group: System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadLeft();
        }
    }

    private void LoadLeft()
    {

        BllGroup bll = new BllGroup();
        var list = bll.GetList(c => true);
        StringBuilder sb = new StringBuilder();     
        for (int i = 0; i < list.Count; i++)
        {
            tb_group obj = list[i];
            string no1 = obj.no1;
            string no2 = obj.no2;
            string no3 = obj.no3;
            string no4 = obj.no4;
            string src = obj.src;
            sb.Append(string.Format(@"<li>
                    <div class='gd1'>
                        <img src='{0}' />
                    </div>
                    <div class='gd2'>
                        <span class='gs1'>{1}</span> <span class='gs2'>{2}</span> <span class='gs3'>{3}</span><span class='gs4'>{4}</span>
                    </div>
                </li>", src,no1,no2,no3,no4));
        }
        ltlli.Text = sb.ToString();
    }
}